home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
ELECTRON
/
0844.ZIP
/
SUNRISE.ARC
/
SUNRISE.DOC
< prev
next >
Wrap
Text File
|
1987-11-02
|
4KB
|
109 lines
November 2, 1987
Sunrise Program
by John Hendrickson
This SUNRISE PROGRAM will compute the times of sunrise and sunset for
every day of any year, and for any place on earth. It will then print this
entire year of data on a 8" by 11" sheet of paper.
ACCURACY is one of the main items, that I have stressed in this
program. I have incorporated data from the U.S. Nautical Almanac and have
tried to pinpoint the position of the sun to the nearest minute of a degree
in these computations. There is also a correction for each year of data.
There is also a correction for the size of the sun and the atmosphere
effect on the bending of sunlight near sunrise or sunset. Even though, I
cannot rule out all errors, I believe that the results should be within 30
seconds of complete accuracy.
To see an example on how this program works type DEMO and hit return.
Make sure that your printer is turned on. Also, make sure that your printer
is set in draft mode. This is required since this program will make use of
the compressed mode of your printer. If your printer is not epson compatible
you can re-direct the output to a file and then edit it with a word
processor. I will explain later on how to do this.
HOW TO RUN SUNRISE
The program will prompt you on what to do. FIRST type SUNRISE.
The following menu will appear on your screen. These questions will appear
one at a time in which you will answer and hit return. SEE FOLLOWING
EXAMPLE:
...SUNRISE PROGRAM...
by John Hendrickson
ENTER IN LAST TWO DIGITS OF YEAR? 88
NAME OF LOCATION?
INDIANAPOLIS, IN
LATITUDE AND LONGITUDE SHOULD BE ENTERED IN THE FOLLOWING FORMAT LL.MM
WHERE LL IS IN DEGREES AND MM IS IN MINUTES
LATITUDE? 39.44
LONGITUDE? 86.16
TIME ZONE IS BASED FROM WHICH MERIDIAN? 75
....PROGRAM SHOULD COMPLETE RUNNING IN LESS THAN 2 1/2 MINUTES....
OUTPUT WILL BE SENT TO LPT1
Stop - Program terminated.
Here are a couple of notes. Latitude and Longitude should be entered
to the nearest degree and minute. A negative number would indicate a
location in the eastern or southern hemisphere. When entering in the time
zone, type the number for which meridian that time zone originates from.
For example
EST would be 75
CST would be 90
MST would be 105
PST would be 120
I have not yet made a provision for daylight time. However, you could
get the results for an entire year by subtracting 15 from any of the
numbers listed above.
The data file to this program has been set up so that you can re-direct
the output. By using a word processor you can edit the first line and
change the name LPT1 to another device or file name. MAKE SURE THAT YOU
CHANGE NOTHING ELSE and everything is converted back to ASCI.
You can also set up additional data files for different locations and
then run this program over and over from a batch file. For example, you
could compute print the sunrise and sunset times for New York City,
Chicago, and Honolulu by typing a batch file like the following.
TEST2.bat where test2 contained
SUNRISE < NYC.DAT
SUNRISE < CHI.DAT
SUNRISE < HON.DAT
You can examine TEST.BAT and INDY.DAT for more information on how to do
this.
There is no charge for this program. However, if you find this program
to be useful to you, a small contribution of $5.00 or $10.00 would be
appreciated. You can send check to:
John Hendrickson
7715 White Dove Dr.
Indianapolis, In. 46256
I would also appreciate any comments or improvements that could be
made.
If you want a printed copy of this document type COPY SUNRISE.DOC PRN